//
//  DYRechargeSetHeaderView.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/17.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYRechargeSetHeaderView.h"


@implementation DYRechargeSetHeaderView

-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}
-(void)initView
{
    self.backgroundColor=WhiteColor;
    
    NSArray *array=@[@"充值金额 (¥)",@"折扣方式",@"折扣比例 (%)",@"赠送金额 (¥)"];
    for (NSInteger i=0; i<4; i++) {
        UILabel *label=[Utils labelWithTitle:array[i] titleFontSize:14 textColor:[UIColor xhq_aTitle] backgroundColor:ClearColor alignment:1];
        label.frame=CGRectMake(i*kScreenWidth/4, 0, kScreenWidth/4, BILIHEIGHT(40));
        [self addSubview:label];
    }
    
    UILabel *line=[UILabel xhq_lineLabel];
    line.frame=CGRectMake(0, BILIHEIGHT(40)-BILIWIDTH(0.7), kScreenWidth, BILIWIDTH(0.7));
    [self addSubview:line];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
